<?php $view->extend('admin/news_r', 'content', 
array(
	'title' => 'Add news', 
	'tips' => 'You can add a news article here. Remember that all html code is allowed. Use h2, h3, h4 for headers and p tags for paragraphs.<br /><br />To show WoW items use [item]ID OR EXACT NAME[/item].')
); ?>

<div class="col c9">

	<h2>Add news</h2>
	<?php echo $newsForm;?>
	<p>
	<label>Title</label>
	<?php echo $newsForm->input('text','title', ($news ? $news->getTitle() : ''))?>
	</p>
	
	<p>
	<label>Article</label>
	<?php echo $newsForm->textarea('body',($news ? $news->getRawText() : ''), array('cols' => 68, 'rows' => 20))?>
	</p>

	<p>
	<label>Enable comments?</label>
	<select name="acceptComment">
		<option value="1" <?php echo $news  && $news->isCommentsEnabled() ? ' selected="selected"' : ''?>>Yes - enable comments</option>
		<option value="0" <?php echo $news  && !$news->isCommentsEnabled() ? ' selected="selected"' : ''?>>No - disable comments</option>
	</select>
	</p>
	
	<p>
		<label class="tooltip" title="Enable SOAP must be configured in worlddbs.yml.">Announce In-Game News title on all realms?</label>
		<select name="announceOnRealms">
			<option value="0" selected="selected">No</option>
			<option value="1">Yes</option>
		</select>
	</p>
	
	<p>
	<?php echo $newsForm->input('submit','submit', 'Save news')?>
	</p>
	<?php echo $newsForm->close()?>
	
</div>